import request from '@/utils/request'

// 查询内部中转记录列表
export function listInternaltransfer(query) {
  return request({
    url: '/app/internaltransfer/list',
    method: 'get',
    params: query
  })
}

// 查询内部中转记录详细
export function getInternaltransfer(id) {
  return request({
    url: '/app/internaltransfer/' + id,
    method: 'get'
  })
}

// 新增内部中转记录
export function addInternaltransfer(data) {
  return request({
    url: '/app/internaltransfer',
    method: 'post',
    data: data
  })
}

// 修改内部中转记录
export function updateInternaltransfer(data) {
  return request({
    url: '/app/internaltransfer',
    method: 'put',
    data: data
  })
}

// 删除内部中转记录
export function delInternaltransfer(id) {
  return request({
    url: '/app/internaltransfer/' + id,
    method: 'delete'
  })
}

// 砂石骨料类型
export function getAggregateList(params) {
    return request({
      url: '/app/aggregate/list',
      method: 'get',
      params
    })
  }
  // 砂石骨料新增
export function aggregateAdd(data) {
  return request({
    url: '/app/aggregate',
    method: 'post',
    data
  })
}
// 砂石骨料类型
export function aggregateDel(data) {
  return request({
    url: `/app/aggregate/${data.id}`,
    method: 'delete',
    data
  })
}
